<template>
  <div>
    <div>
      <FormPanel ref="formPanel" :list="formList" :cols="3" :labelWidth="250" :formType="type" :isSubmitBtn="false" @formChange="formChangeHandle" />
    </div>
    <div
      :style="{
        left: 0,
        bottom: 0,
        right: 0,
        zIndex: 9,

        textAlign: 'right'
      }"
    >
      <el-button @click="closeDialog">关 闭</el-button>
      <AjaxButton v-if="type !== 'show'" :click="saveDialog" type="primary">保存</AjaxButton>
    </div>
  </div>
</template>
<script>
import { dictionary } from '@/utils/dictMixin';
import { updateRepairParam, getRepairParam, getSystemDefault } from '@/api/repair/basicparams/repairParam'; // 页面调用的的方法,对应的路径连接后台

export default {
  name: 'lhmRepairParams',
  mixins: [dictionary],
  props: {
    type: {
      type: String,
      default: 'add'
    },
    rowData: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    this.conf = { add: '保 存', edit: '修 改' };
    this.saveData = null;
    this.paramVal = {};
    return {
      formList: this.createFormList(),
      orderStatus: '' // 判断一车一单状态值
    };
  },
  computed: {
    btnText() {
      return this.conf[this.type];
    }
  },
  mounted() {
    this.init();
    this.getSystemDefault();
  },
  //   async getParams() {
  //     let res = {};
  //     var i=0;
  //     res = await getRepairParam();
  // //    if (res.resultCode === 200) {
  //       this.formList.forEach(x => {
  //         x.initialValue = res.data[i][x.fieldName];
  //         i++;
  //       });
  //  //   }
  //   },
  methods: {
    async getSystemDefault() {
      this.orderStatus = (await getSystemDefault({ itemCode: 8033 })).data;
      if (this.orderStatus == '10041001') {
        // 判断一车一单，是否显示serviceKey
        this.formList.find(x => x.fieldName === 'servicebegin|serviceend').hidden = true;
      }
    },
    createFormList() {
      return [
        {
          type: 'INPUT',
          label: '车号前缀',
          fieldName: 'chqz',
          placeholder: '请输入...'
        },
        {
          type: 'SELECT',
          label: '有效时间计算',
          fieldName: 'yxsjjs',
          itemList: [
            { text: '委托书', value: 1 },
            { text: '项目', value: 2 }
          ]
        },
        {
          type: 'SELECT',
          label: '项目查询',
          fieldName: 'xmcx',
          itemList: [
            { text: '项目代码', value: 1 },
            { text: '拼音码', value: 2 },
            { text: '项目名称', value: 3 }
          ]
        },
        {
          type: 'SELECT',
          label: '洗车方式(01:不洗/02:机洗/03:人工/04:赠券)',
          fieldName: 'xcfsqq',
          itemList: [
            { text: '不洗', value: 1 },
            { text: '机洗', value: 2 },
            { text: '人工', value: 3 },
            { text: '赠券', value: 4 }
          ]
        },
        {
          type: 'CHECKBOX',
          label: '完工审核修改备件信息',
          fieldName: 'wgshbjxx',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '完工审核修改出库类别时重新计算出库单价',
          fieldName: 'wgshckdj',
          options: {
            trueValue: 1,
            falseValue: 0
          }
        },
        {
          type: 'CHECKBOX',
          label: '允许服务顾问前台派料',
          fieldName: 'rxqtpl',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: 'FD单上传及时率控制',
          fieldName: 'edsc',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '语音提醒',
          fieldName: 'yytx',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '短信提醒',
          fieldName: 'dxtx',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'DATE',
          label: '三包执行日期',
          fieldName: 'sbzxrq',
          disable: true,
          dateType: 'datetime'

        },
        {
          type: 'CHECKBOX',
          label: '自动转换ETKA备件代码（实验室功能）',
          fieldName: 'zdzhetka',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '三包有效期（时间）',
          fieldName: 'sbyyqs',
          disable: true
        },
        {
          type: 'INPUT',
          label: '三包有效期（里程）',
          fieldName: 'sbyxql',
          disable: true
        },
        {
          type: 'CHECKBOX',
          label: '工费含税',
          fieldName: 'gfhs',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '工费税率%',
          fieldName: 'gfsl'
        },
        {
          type: 'SELECT',
          label: '结算小数保留',
          fieldName: 'jsxsbl',
          itemList: [
            { text: '元', value: 1 },
            { text: '角', value: 2 },
            { text: '分', value: 3 }
          ]
        },
        {
          type: 'INPUT',
          label: '辅材费比率%',
          fieldName: 'fcfbl'
        },
        {
          type: 'INPUT',
          label: 'FD回调函数名',
          fieldName: 'fdhshdm'
        },
        {
          type: 'INPUT',
          label: '管理费比率%',
          fieldName: 'glfbl'
        },
        {
          type: 'CHECKBOX',
          label: '工时统计是否包含欠帐',
          fieldName: 'gstjsfbhqz',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '工时统计使用派工日期',
          fieldName: 'gstjsypgri',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '是否使用更换正时皮带提醒',
          fieldName: 'sfghzspdtx',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '更换正时皮带里程上限(万公里)',
          fieldName: 'ghzspdlcsx'
        },
        {
          type: 'INPUT',
          label: '更换正时皮带里程下限(万公里)',
          fieldName: 'ghzspdlcxx'
        },
        {
          type: 'INPUT',
          label: 'IACS车辆计算月',
          fieldName: 'iacscljsy',
          disable: true
        },
        {
          type: 'CHECKBOX',
          label: '结算时使用优惠',
          fieldName: 'jshsyyh',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'SELECT',
          label: '维修项目派工要求',
          fieldName: 'wxxmpgyq',
          itemList: [
            { text: '班组', value: 1 },
            { text: '主修人', value: 2 }
          ]
        },
        {
          type: 'CHECKBOX',
          label: '修改结算单保存上次修改内容',
          fieldName: 'xgjudbcscxg',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '委托书电话掩码显示',
          fieldName: 'wtsdhymxs',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: 'IACS车辆统计起始年月',
          fieldName: 'iacstjqsny',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'IACS车辆统计截止年月',
          fieldName: 'iacstjjzny',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'IACS车辆最小计算年月',
          fieldName: 'iacsclzxjsny',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'IACS车辆最大计算年月',
          fieldName: 'iacsclzdjsny',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'JD车辆最小计算月',
          fieldName: 'jdclzxjsy',
          disable: true
        },
        {
          type: 'INPUT',
          label: '预约单自动作废时限（分钟）',
          fieldName: 'yydzdzfsx'
        },
        {
          type: 'INPUT',
          label: 'JD车辆最大计算月',
          fieldName: 'jdclzdjsy',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'JD车辆统计起始年月',
          fieldName: 'jdcltjqsny',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'JD车辆统计截止年月',
          fieldName: 'jdcltjjzny',
          disable: true
        },
        {
          type: 'CHECKBOX',
          label: '复制委托书的送修时间以当前系统时间为准',
          fieldName: 'fzwtodsxsj',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '启用收银模块',
          fieldName: 'qysymk',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '内部核算工时单价',
          fieldName: 'nbhsgsdj'
        },
        {
          type: 'SELECT',
          label: 'PDI项目控制',
          fieldName: 'pdixmkz',
          itemList: [
            { text: '项目', value: 1 },
            { text: '委托书', value: 2 }
          ]
        },
        {
          type: 'INPUT',
          label: '约定交车未审提醒分钟数',
          fieldName: 'ydjcwstxfzs'
        },
        {
          type: 'INPUT',
          label: '接车开始时间在送修时间前**分钟',
          fieldName: 'jckssjq'
        },
        {
          type: 'INPUT',
          label: '上班时间',
          fieldName: 'sbsj'
        },
        {
          type: 'INPUT',
          label: '下班时间',
          fieldName: 'xbsj'
        },
        {
          type: 'CHECKBOX',
          label: '查询结账显示支付信息',
          fieldName: 'cxjzxszfxx',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '预约工时优惠率',
          fieldName: 'yygsyhl',
          disable: true
        },
        {
          type: 'INPUT',
          label: '预约材料优惠率',
          fieldName: 'yyclyhl'
        },
        {
          type: 'INPUT',
          label: '预约及时到店时限(分钟)',
          fieldName: 'yyjsddsx'
        },
        {
          type: 'CHECKBOX',
          label: '允许维护负的工时和工时费',
          fieldName: 'rxwhfgshgsf',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '接车的默认时长**分钟',
          fieldName: 'jcdmrscf'
        },
        {
          type: 'INPUT',
          label: '交车的默认时长**分钟',
          fieldName: 'jcdmrsc'
        },
        {
          type: 'INPUT',
          label: '标准日平均行驶里程',
          fieldName: 'bzrpjxslc'
        },
        {
          type: 'INPUT',
          label: '维修的默认时长**分钟',
          fieldName: 'wxdmrscz'
        },
        {
          type: 'INPUT',
          label: '三包交通补偿提醒天数',
          fieldName: 'sbjtbctxts'
        },
        {
          type: 'INPUT',
          label: '默认厂牌',
          fieldName: 'mrcp'
        },
        {
          type: 'INPUT',
          label: '备件价格索赔加价率',
          fieldName: 'bjjgspjjl'
        },
        {
          type: 'CHECKBOX',
          label: '技术经理FD未处理不允许完工审核',
          fieldName: 'jsjlfdwgsh',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '服务顾问提前一小时确认提醒时间',
          fieldName: 'fwgwtxsj'
        },
        {
          type: 'CHECKBOX',
          label: '代金券记名发放',
          fieldName: 'djqjmff',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '在线支付',
          fieldName: 'zxjfpp',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '接车检查表图片地址',
          fieldName: 'jcjcbtpdz'
        },
        {
          type: 'CHECKBOX',
          label: '委托书是否打印套项子项',
          fieldName: 'wtssfdytzx',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '委托书打印维修时长合计',
          fieldName: 'wtsdywxschj',
          options: {
            trueValue: 1,
            falseValue: 0
          }
        },
        {
          type: 'CHECKBOX',
          label: '进厂处理自动打印召回书',
          fieldName: 'jcclzddyzhs',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '服务顾问是否强制派工',
          fieldName: 'fwgwsfqzpg',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },

        // 基本信息

        {
          type: 'INPUT',
          label: '委托书备注',
          fieldName: 'wtsbz'
        },
        {
          type: 'INPUT',
          label: '委托书说明1',
          fieldName: 'wtssm1'
        },
        {
          type: 'INPUT',
          label: '委托书说明2',
          fieldName: 'wtssm2'
        },
        {
          type: 'INPUT',
          label: '委托书说明3',
          fieldName: 'wtssm3'
        },
        {
          type: 'INPUT',
          label: '结算单说明1',
          fieldName: 'jsdsm1'
        },
        {
          type: 'INPUT',
          label: '结算单说明2',
          fieldName: 'jsdsm2'
        },
        {
          type: 'INPUT',
          label: '结算单说明3',
          fieldName: 'jsdsm3'
        },
        {
          type: 'INPUT',
          label: '估算单说明1',
          fieldName: 'gsdsm1'
        },
        {
          type: 'INPUT',
          label: '估算单说明2',
          fieldName: 'gsdsm2'
        },
        {
          type: 'INPUT',
          label: '估算单说明3',
          fieldName: 'gsdsm3'
        },
        {
          type: 'INPUT',
          label: '估算单说明4',
          fieldName: 'gsdsm4'
        },
        {
          type: 'INPUT',
          label: '估算单说明5',
          fieldName: 'gsdsm5'
        },
        {
          type: 'INPUT',
          label: '估算单说明6',
          fieldName: 'gsdsm6'
        },
        {
          type: 'INPUT',
          label: '委托书说明4',
          fieldName: 'wtssm4'
        },
        {
          type: 'INPUT',
          label: '委托书说明5',
          fieldName: 'wtssm5'
        },
        {
          type: 'INPUT',
          label: '委托书说明6',
          fieldName: 'wtssm6'
        },
        {
          type: 'INPUT',
          label: '维修合同说明',
          fieldName: 'wxhtsm'
        },
        {
          type: 'CHECKBOX',
          label: '打印出门证',
          fieldName: 'dycmz',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '结算单打印税额',
          fieldName: 'jsddyse',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '结算单体现前台领料',
          fieldName: 'jsdtxqtll',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '委托书、结算单是否显示工时',
          fieldName: 'wtsjsdxsgs',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '委托书项目空行数',
          fieldName: 'wtsxmkhs'
        },
        {
          type: 'INPUT',
          label: '委托书增项空行数',
          fieldName: 'wtszxkhs'
        },
        {
          type: 'INPUT',
          label: '派工单增项空行数',
          fieldName: 'pgdzxkhs'
        },
        {
          type: 'CHECKBOX',
          label: '免费委托书打印结算单',
          fieldName: 'mfwtsdyjsd',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '委托书、结算单打印建议修理项目',
          fieldName: 'wtsjsddyjyxl',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '委托书预估备件空行数',
          fieldName: 'wtsygbjkhs'
        },
        {
          type: 'INPUT',
          label: '结算单无维修项目空行数',
          fieldName: 'jsdwwxxmkhs'
        },
        {
          type: 'INPUT',
          label: '结算单无备件空行数',
          fieldName: 'jsdwbjkhs'
        },
        {
          type: 'SELECT',
          label: '结算单格式',
          fieldName: 'jsdgs',
          itemList: [
            { text: '普通格式', value: 1 },
            { text: '上海', value: 2 },
            { text: '江苏', value: 3 }
          ]
        },
        {
          type: 'CHECKBOX',
          label: '委托书合并打印',
          fieldName: 'wtshbdy',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '发票类型',
          fieldName: 'fplx1'
        },
        {
          type: 'INPUT',
          label: '发票类型',
          fieldName: 'fplx2'
        },
        {
          type: 'INPUT',
          label: '季节性活动包开始日期截止日期',
          fieldName: 'jjxhdbrq',
          disable: true
        },
        {
          type: 'SELECT',
          label: '车间工作模式',
          fieldName: 'cjgzms',
          itemList: [
            { text: '小组模式', value: 1 },
            { text: '个人模式', value: 2 }
          ]
        },
        {
          type: 'INPUT',
          label: 'FD单调用服务路径',
          fieldName: 'fdddyfwlj',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'IPad公网校验版本号地址',
          fieldName: 'ipaddgwjybbhdz',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'IPad二维码客户端下载地址',
          fieldName: 'ipadewmkhdxzdz',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'IPad接车项目数据库版本号',
          fieldName: 'ipadjccxmsjkbbh',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'Portal召回行动附件地址',
          fieldName: 'portalzhxdfjdz',
          disable: true
        },
        {
          type: 'CHECKBOX',
          label: '显示索赔工时费',
          fieldName: 'xsspgsf',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'CHECKBOX',
          label: '显示索赔材料费',
          fieldName: 'cszxsspclf',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: '延保系统调用服务路径',
          fieldName: 'ybxtdyfwlj',
          disable: true
        },
        {
          type: 'CHECKBOX',
          label: '取消结算备份结算单打印信息',
          fieldName: 'qxjsbfjsdyxx',
          options: {
            trueValue: '1',
            falseValue: '0'
          }
        },
        {
          type: 'INPUT',
          label: 'FeedBack市场服务活动地址',
          fieldName: 'feedbackscfw',
          disable: true
        },
        {
          type: 'INPUT',
          label: '现场分析查询',
          fieldName: 'xcfxcx',
          disable: true
        },
        {
          type: 'INPUT',
          label: '上传电子健康档案工具IP',
          fieldName: 'scdzjkdagj'
        },
        {
          type: 'INPUT',
          label: '机油有奖二维码激活接口网址(新)',
          fieldName: 'jyyjewmjkz'
        },
        {
          type: 'INPUT',
          label: '核销/取消核销代金券接口网址',
          fieldName: 'hsqxhxdjqjkwz'
        },
        {
          type: 'INPUT',
          label: 'Portal集成-查询PR号',
          fieldName: 'portalcxrah',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'Portal集成-车辆维修历史',
          fieldName: 'portjccclwxll',
          disable: true
        },
        {
          type: 'INPUT',
          label: '获取奖品信息接口网址',
          fieldName: 'hqjpxxjkwz'
        },
        {
          type: 'INPUT',
          label: '查询代金券使用记录接口网址',
          fieldName: 'cxdjqsyjljkwz'
        },
        {
          type: 'INPUT',
          label: 'Portal集成-三包期历史',
          fieldName: 'portaljcsbls',
          disable: true
        },
        {
          type: 'INPUT',
          label: 'Portal集成-查询行动信息',
          fieldName: 'portaljccxxdxx',
          disable: true
        },
        {
          type: 'INPUT',
          label: '兑换奖品接口网址',
          fieldName: 'dhjpjkwz'
        },
        {
          type: 'INPUT',
          label: '经销商费用申请单上传接口网址',
          fieldName: 'jxsfysqdsqwz'
        },
        {
          type: 'INPUT',
          label: 'Portal集成-查看诊断报告',
          fieldName: 'portaljccckzdbg',
          disable: true
        },
        {
          type: 'INPUT',
          label: '上传委托书ElsaPro网址',
          fieldName: 'scwtoelsaprowz',
          disable: true
        },
        {
          type: 'INPUT',
          label: '下载项目ElsaPro网址',
          fieldName: 'xzxmelsapro',
          disable: true
        },
        {
          type: 'CHECKBOX',
          label: '启用翱特集成系统',
          fieldName: 'qyxtjcxt',
          options: {
            trueValue: '1',
            falseValue: '0'
          },
          disable: true
        },
        {
          type: 'CHECKBOX',
          label: '是否集成定损系统',
          fieldName: 'sfjcdsxt',
          options: {
            trueValue: 1,
            falseValue: 0
          }
        },
        {
          type: 'RANGE_DATE',
          label: '不校验serviceKey时间范围',
          fieldName: 'servicebegin|serviceend',
          disable: true,
          format: 'yyyy-MM-dd',
          hidden: false
        }
      ];
    },

    formChangeHandle(val) {
      this.saveData = val;
    },
    async saveDialog() {
      this.$refs.formPanel.SUBMIT_FORM();
      console.log(this.saveData);
      // let obj = {
      //    ...this.saveData,
      //   //  Id:res[0].id
      // }
      // const id = this.formList.find(x => x.fieldName === 'id');
      // alert(id);

      const res = await updateRepairParam({ ...this.paramVal, ...this.saveData });
      if (res.resultCode == 200) {
        // 成功返回200
        return this.$notify({
          title: '提示信息',
          message: '保存成功',
          type: 'success'
        });
      }
    },

    async init() {
      // this.recordId = this.formList.id;
      const res = (await getRepairParam()).data;
      let aaa = res[0];
      this.formList.forEach(x => {
        x.initialValue = aaa[x.fieldName];
        // this.paramVal.id=aaa[x.id]
        if (x.fieldName === 'xcfsqq') {
          x.initialValue = 1 ? (x.initialValue = '不洗') : (x.initialValue = 2 ? (x.initialValue = '机洗') : (x.initialValue = '3' ? (x.initialValue = '人工') : (x.initialValue = '赠券')));
        }
        if (x.fieldName === 'yxsjjs') {
          x.initialValue = 1 ? (x.initialValue = '委托书') : (x.initialValue = '项目');
        }
        if (x.fieldName === 'xmcx') {
          x.initialValue = 1 ? (x.initialValue = '项目代码') : (x.initialValue = 2 ? (x.initialValue = '拼音码') : (x.initialValue = '项目名称'));
        }
        if (x.fieldName === 'jsxsbl') {
          x.initialValue = 1 ? (x.initialValue = '元') : (x.initialValue = 2 ? (x.initialValue = '角') : (x.initialValue = '分'));
        }
        if (x.fieldName === 'wxxmpgyq') {
          x.initialValue = '1' ? (x.initialValue = '班组') : (x.initialValue = '主修人');
        }
        if (x.fieldName === 'pdixmkz') {
          x.initialValue = '1' ? (x.initialValue = '项目') : (x.initialValue = '委托书');
        }
        if (x.fieldName === 'jsdgs') {
          x.initialValue = '1' ? (x.initialValue = '普通格式') : (x.initialValue = '2' ? (x.initialValue = '上海') : (x.initialValue = '江苏'));
        }
        if (x.fieldName === 'cjgzms') {
          x.initialValue = '1' ? (x.initialValue = '小组模式') : (x.initialValue = '个人模式');
        }
      });
      this.paramVal.id = res[0].id;
    },
    closeDialog(param) {
      this.$emit('close', false, param);
    }
  }
};
</script>

<style lang="less" scoped></style>
